﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Konekti.ClientTest.Konekti.Domain;

namespace Konekti.ClientTest
{
    public partial class TestClient : Form
    {
        public TestClient()
        {
            InitializeComponent();
        }

        private void btnQuery_Click(object sender, EventArgs e)
        {
            ISecUserDao SecUser = new SecUserDaoClient();

            try
            {
                dgDrivers.DataSource = null;
                DRIVERS.DataSource = SecUser.FindAll();
                dgDrivers.DataSource = DRIVERS;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
    }
}
